package com.itheima.dao.impl;

import com.itheima.dao.BookDao;
import com.itheima.pojo.Student;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;


@Repository("book1")
public class BookDaoImpl implements BookDao {
    @Value("${name}")
    private String name;
    @Value("${age}")
    private int age;

    private Student student;

    @Override
    public void save() {
        System.out.println("BookDaoImpl save book1...");
        System.out.println(name+"----"+age);
        System.out.println(student);
    }
}
